home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 24
/
AMIGAplus Sonderheft 24 (2000)(Falke)(DE)[!].iso
/
Rexx
/
AnimPath.pprx
< prev
next >
Wrap
Text File
|
1999-11-06
|
60KB
|
1,986 lines
/* Personal Paint Amiga Rexx script - Copyright © 1997 Cloanto Italia srl */
/* $VER: AnimPath.pprx 1.3 */
/** ENG
This script can be used to easily create animations with
moving and transforming objects.
The main requester gives access to the following commands:
- New: the path is cleared and the brush transformations are set
to their defaults.
- Load: an existing path file can be selected using the file requester;
this causes the path coordinates, the brush transformation settings
and the animation settings to be loaded (note: this data
is stored in ASCII format and can easily be algorithmically
generated and manipulated by other programs).
- Save: this command writes a path file using the current path data.
- Define Freehand: the mouse can be used to "draw" the path;
both the direction of the path and the mouse movement speed
affect the resulting animation: the original direction
is used to render the frames (the starting point is used
to place the object in the first frame and the last point
is used for the last frame) and the drawing speed
affects the number and the "density" of stored points
(the slower the speed, the more points, and
vice versa) and defines the perceived speed of the animation
(e.g. a path defined with a high initial speed and a slow
ending speed leads to a corresponding animation).
Before the mouse button is pressed, the brush is displayed to ease
positioning in the first frame. All drawing must occur holding
down the left mouse button, releasing it only at the end
of the definition.
- Define Linear: the mouse can be used to define a linear path
(simply consisting of a starting point and an ending point);
unlike the freehand path, this kind of path produces a
constant-speed animation (equally-spaced intermediate points
are generated automatically). To define the path, press the left
mouse button on the starting point, and release it at the end.
- Edit: this command can be used to visually edit the path;
the "path points" can be dragged with the mouse to change the
path shape and/or density (speed); the <m> key toggles
the magnify mode on or off, and the right mouse button or the <Esc> key
can be pressed to leave the editing mode.
- Move and Resize: the mouse can be used to resize the animation
path (clicking on the lower right part of the path) or to drag it
to a new position (clicking on the upper part). This is useful
to create paths with point outside the screen, which cannot be
drawn by hand. The <m> key toggles the magnify mode on or off, and
the right mouse button or the <Esc> key can be pressed
to exit from the move and resize mode.
- Brush Angle: the Brush Angle requester is used to set
the number of brush rotations ("Rotation Cycles"), the starting
("From Angle") and ending angle ("To Angle"), and the
rotation direction ("Direction": "Clockwise/Counterclockwise");
a number of rotations greater than 1 can be used to add
additional 360° spins in the specified direction.
- Brush Shear: the Brush Shear requester is used to set
the number of shear cycles ("Shear Cycles"), the starting and
ending horizontal shear ("From Horizontal", "To Horizontal"),
and the starting and ending vertical shear ("From Vertical",
"To Vertical"); if a number of shear cycles greather than 1 is specified,
the shear factors will move back and forth within the specified
limits (an odd number of cycles must be used to reach the ending
shear in the last frame).
- Brush Size: the Brush Size requester is used to set
the number of resize cycles ("Resize Cycles"), the starting and
ending horizontal size ("From Horizontal", "To Horizontal",
in percentage of the original size), and the starting and ending
vertical size ("From Vertical", "To Vertical");
if a number of resize cycles greather than 1 is specified,
the resize factors will move back and forth within the specified
limits (an odd number of cycles must be used to reach the ending
size in the last frame).
- Data: the data requester can be used to view the path data
at a glance (animation, rotation, shear and resize settings,
followed by the path coordinates).
- Preview: this command can be used to preview the animation;
when one or more brush effects are involved, the brush image
is replaced by an outline (the inner arrow points to the top
of the brush).
The main requester also contains gadgets to set the animation
frames ("Count"), the recording direction ("Direction":
"Forward/Backward/Still" - the frame step) and the frame insertion option
("Add Frames" - if active, "Count" frames are inserted).
When using freehand paths with no brush effect, the "Count"
setting should not be set to a number greater than the path points
(as reported by the Data requester), as this would generate one or more
duplicate frames.
The bottom gadgets in the main requester can be used to render
the animation ("Draw", which also terminates the script) or to
quit the script ("Quit"). A copy of the current path is
always temporarily stored, so that it can be used when the script is
run again.
The following program settings affect the animation appearance and
quality: the current brush (anim-brushes can be used to
create complex animation effects), the brush handle position,
the brush paint mode (and the foreground color, if the "Color" mode
is active) and the "Color average resize" option.
*/
/** DEU
Dieses Skript ermöglicht die einfache Erzeugung von Animationen, in deren
Verlauf Objekte bewegt und verwandelt werden.
Im Haupt-Dialogfenster erfolgt der Zugriff auf folgende Befehle:
- Neu: Löscht den alten Pfad und setzt die Pinseltransformationen auf die
Standardwerte zurück.
- Laden: Mit dem Dateiauswahlfenster läßt sich eine zuvor gespeicherte
Pfaddatei auswählen. Dabei werden Pfadkoordinaten, Einstellungen für die
Pinseltransformation und verschiedene Animationseinstellungen geladen.
Hinweis: Diese Daten liegen im ASCII-Format vor und lassen sich daher auf
einfache Weise mit Hilfe anderer Programme algorithmisch erzeugen und/oder
verändern.
- Speichern: Schreibt eine Pfaddatei unter Verwendung der aktuellen
Pfaddaten.
- Frei festlegen: Ermöglicht die Bestimmung des Pfades mit Hilfe der Maus.
Sowohl dessen Verlauf als auch die Geschwindigkeit der Mausbewegung
beeinflussen den späteren Animationsablauf: Die ursprüngliche Richtung wird
zur Berechnung der Einzelbilder verwendet (Das erste Einzelbild wird am
Startpunkt berechnet, das letzte dementsprechend am Zielpunkt), während die
Geschwindigkeit des Zeichenvorgangs sowohl Anzahl als auch Abstand
("Dichte") der gespeicherten Punkte beeinflußt. Dabei gilt: Je geringer die
Geschwindigkeit, desto mehr Punkte, und umgekehrt. Auch die
Ablaufgeschwindigkeit hängt von diesem Faktor ab, d. h. ein mit hoher
Anfangs- und geringer Endgeschwindigkeit definierter Pfad erzeugt eine
dementsprechend mit zunehmend geringerer Geschwindigkeit ablaufende
Animation. Um die Festlegung der Position für das erste Einzelbild zu
erleichtern, wird vor der Betätigung der linken Maustaste das aktuelle
Zeichen angezeigt.
- Linear festlegen: Ermöglicht die Bestimmung eines linearen Pfades, welcher
lediglich durch Anfangs- und Endpunkt festgelegt wird. Im Gegensatz zum frei
festgelegten Pfad wird hierdurch eine Animation erzeugt, die über ihren
gesamten Verlauf hinweg eine konstante Geschwindigkeit beibehält, da die
Zwischenpunkte automatisch alle im gleichen Abstand voneinander angeordnet
werden.
- Bearbeiten: Dient zur visuellen Bearbeitung des Pfades. Durch Verschieben
der einzelnen Knotenpunkte des Pfades mit der Maus lassen sich Form und
Dichte (Geschwindigkeit) ändern. Mit Hilfe der Taste <m> kann die
Lupfenfunktion an- oder ausgeschaltet werden. Um den Bearbeitungsmodus zu
verlassen, ist die <Esc>-Taste zu drücken.
- Position und Größe: Hiermit lassen sich unter Verwendung der Maus Position
(durch Anklicken des rechten unteren Pfadteils) und Größe (dur